while {true} do
 {
  waitUntil {runclientcode};
  runclientcode=false;
  
  [] spawn clientcode;
  clientcode={};
 };